﻿using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XNA_TD
{
    public class Block : Tower
    {
        static LvlInfo startInfo;
        static Matrix[] boneTransforms = null;

        public Block(Vector3 pos)
            : base(pos, "Tower/Block")
        {
            if (boneTransforms == null)
            {
                boneTransforms = new Matrix[model.Bones.Count];
                startInfo = new LvlInfo("", 0, 0, 0, 25, 50, GegnerTyp.Nichts);
            }
            lvlInfo = startInfo;
            ResetHealth();
        }

        public override void FixedGameUpdate()
        {
        }

        protected override void Shot()
        {
        }

        protected override Matrix[] CalculateAbsoluteBoneTransforms()
        {
            model.Root.Transform = root * Matrix.CreateTranslation(position);
            model.CopyAbsoluteBoneTransformsTo(boneTransforms);
            return boneTransforms;
        }
    }
}
